/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ghanaroutes.webservices;

import javax.ejb.Local;

/**
 *
 * @author User
 */
@Local
public interface ghanaroutesBeanLocal {

    String createUser(String username, String phoneNo);

    String saveRoute(int user_id, String from, String to, String lat, String parameter1, String duration, String distance, String mode, String description, String loc, String curLoc, String curCity);

    String getUserSavedRoutes(String userId, String loc, String curLoc, String curCity);

    String getRouteByRouteId(String routeId, String userId, String loc, String curLoc, String curCity);

    String searchPopularPlaces(String userId, String loc, String curLoc, String curCity);

    String searchPopularPlacesLocations(String placeId, String userId, String loc, String curLoc, String curCity);

    String getPopularLocationRoutes(String routeId, String userId, String loc, String curLoc, String curCity);

    String searchRoutes(String from, String to, String userId, String loc, String curLoc, String curCity);

    String getPopularLocationRoute(String routeId, String userId, String loc, String curLoc, String curCity);

    String addPopularLoc(int placeId, String locationName, String description, String address, int userId, String loc, String curLoc, String curCity);

    String addPopularLocRoute(int locationId, String fromLoc, String pathLong, String pathLat, int userId, String description, String distance, String duration, String mode, String loc, String curLoc, String curCity);

    String setInvisible(int userId, byte visible, String loc, String curLoc, String curCity);

    String findFriend(int userId, String phoneNo, String loc, String curLoc, String curCity);

    String whoViewedMe(int userId, String loc, String curLoc, String curCity);

    String blockFriends(int userId, String friends, String loc, String curLoc, String curCity);

    String unblockFriend(int userId, int friend, String loc, String curLoc, String curCity);

    String viewedBlockedFriends(int userId, String loc, String curLoc, String curCity);

    String addRouteComment(int userId, int routeId, int routeType, String comment, String loc, String curLoc, String curCity);

    String addNotification(int userId, byte notificationType, int routeOrAlertId, String generatedFor, String details, String loc, String curLoc, String curCity);

    String getNotifications(int userId, String loc, String curLoc, String curCity);

    String delNotification(int userId, int notificationId, String loc, String curLoc, String curCity);

    String clearNotifications(int userId, String loc, String curLoc, String curCity);

    String sendAlert(String location, String areaName, String cause, String expirationDate, String user_id);


    public String viewAreaAlerts(String currentLoc, String areaName);

    String addComment(String user_id, String group_id, String comment);
    
    
}
